#ifndef WORKERTHREAD_H
#define WORKERTHREAD_H

#include <QThread>
#include <QMutex>

/**
 * 假设有100个礼品盒有2人去抢，谁抢到，就是谁的
 * @brief The WorkerThread class
 */
class WorkerThread : public QThread
{
public:
    WorkerThread();

    virtual void run() override;
public:
    static int packageCount ; ///<  静态的礼品盒数量

    QMutex mutex;

};


#endif // WORKERTHREAD_H
